﻿@using FotoLab.Controllers
@model GebruikerController.LoginViewModel
@{
    ViewBag.Title = "Log in";
}
<style>
    .row {
        background: rgba(255,255,255, .5);
    }
</style>
<h2>@ViewBag.Title.</h2>
<div class="row">
    <div class="col-md-8">
        <section id="loginForm">
            @using (Html.BeginForm("Login", "Gebruiker", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
            {
                @Html.AntiForgeryToken()
                <h4>Voer uw gebruikersnaam en wachtwoord in om in te loggen.</h4>
                <hr />
                @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                <div class="form-group">
                    @Html.LabelFor(m => m.Gebruikersnaam, new { @class = "col-md-2 control-label" })
                    <div class="col-md-10">
                        @Html.TextBoxFor(m => m.Gebruikersnaam, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Gebruikersnaam, "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="form-group">
                    @Html.LabelFor(m => m.Wachtwoord, new { @class = "col-md-2 control-label" })
                    <div class="col-md-10">
                        @Html.PasswordFor(m => m.Wachtwoord, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Wachtwoord, "", new { @class = "text-danger" })
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <div class="checkbox">
                            @Html.CheckBoxFor(m => m.OnthoudtMij)
                            @Html.LabelFor(m => m.OnthoudtMij)
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <input type="submit" value="Log in" class="btn btn-default" />
                    </div>
                </div>
            }
        </section>
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}